<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QuantumLibrary: /bb/mbigc/mbig5696/git/quantum_external/src/quantum_configuration.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QuantumLibrary
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('dc/d27/quantum__configuration_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">quantum_configuration.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** Copyright 2018 Bloomberg Finance L.P.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">** distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">** limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef BLOOMBERG_QUANTUM_CONFIGURATION_H</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define BLOOMBERG_QUANTUM_CONFIGURATION_H</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_thread_traits.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a> {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">namespace </span>quantum {</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">//                                 class Configuration</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html">   31</a></span>&#160;<span class="comment"></span><span class="keyword">class </span><a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html">Configuration</a></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3">   34</a></span>&#160;     <span class="keyword">enum class</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3">BackoffPolicy</a> : int { <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3a32a843da6ea40ab3b17a3421ccdf671b">Linear</a>,        </div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                                      <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3ac1e19c09f700938f0ff7f1fd4722a3ac">Exponential</a> }; </div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                           </div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#af940e54b4dd63dd40e4a34140d366b11">getJsonSchema</a>();</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    </div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#acc089a7cf24dfc4fd54d50bfa41502ba">getJsonSchemaUri</a>();</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    </div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a422373d17db88e6990ee69796b5f5cf3">setNumCoroutineThreads</a>(<span class="keywordtype">int</span> num);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    </div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#af1735770c472f6c312e161bc83646099">setNumIoThreads</a>(<span class="keywordtype">int</span> num);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a769faa15f9cda530a95d9bf1f93764fc">setPinCoroutineThreadsToCores</a>(<span class="keywordtype">bool</span> value);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    </div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#acc82f4296d0861c9954b0205eb62c551">setLoadBalanceSharedIoQueues</a>(<span class="keywordtype">bool</span> value);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    </div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a0fd72a6b2ff388efc12d4725340cfa46">setLoadBalancePollIntervalMs</a>(std::chrono::milliseconds interval);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    </div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#ac79de2f4b523de86f2625272685dbf96">setLoadBalancePollIntervalBackoffPolicy</a>(<a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3">BackoffPolicy</a> policy);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    </div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#ab2d38709b7471c4d31f0aeb5668b17a5">setLoadBalancePollIntervalNumBackoffs</a>(<span class="keywordtype">size_t</span> numBackoffs);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a5c7b190a980d1eddaf6e25f9b3bdb528">setCoroQueueIdRangeForAny</a>(<span class="keyword">const</span> std::pair&lt;int, int&gt;&amp; coroQueueIdRangeForAny);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    </div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a9800ff0a1eace92ec4e73bb154665263">getNumCoroutineThreads</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    </div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a8203c700517a9648f6adcb8b4a899cf6">getNumIoThreads</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    </div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#ab947b023827f30b596763ada87b29834">getPinCoroutineThreadsToCores</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    </div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#af42bc6d199d504b5c48764ce70477607">getLoadBalanceSharedIoQueues</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    </div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    std::chrono::milliseconds <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a1585e468f306dec0b951bbf9f21b0315">getLoadBalancePollIntervalMs</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    </div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3">BackoffPolicy</a> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a0ceee1c5685d596a97cb4034a47e360c">getLoadBalancePollIntervalBackoffPolicy</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    </div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a90a58610ecd1c524583ac42d97b91875">getLoadBalancePollIntervalNumBackoffs</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">const</span> std::pair&lt;int, int&gt;&amp; <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a0c0526228f0aa514ceeef92a3162cede">getCoroQueueIdRangeForAny</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    </div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordtype">int</span>                         _numCoroutineThreads{-1};</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordtype">int</span>                         _numIoThreads{5};</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordtype">bool</span>                        _pinCoroutineThreadsToCores{<span class="keyword">false</span>};</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordtype">bool</span>                        _loadBalanceSharedIoQueues{<span class="keyword">false</span>};</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    std::chrono::milliseconds   _loadBalancePollIntervalMs{100};</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3">BackoffPolicy</a>               _loadBalancePollIntervalBackoffPolicy{<a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3a32a843da6ea40ab3b17a3421ccdf671b">BackoffPolicy::Linear</a>};</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordtype">size_t</span>                      _loadBalancePollIntervalNumBackoffs{0};</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    std::pair&lt;int, int&gt;         _coroQueueIdRangeForAny{-1, -1};</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;};</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}}</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#include &lt;quantum/impl/quantum_configuration_impl.h&gt;</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor">#endif //BLOOMBERG_QUANTUM_CONFIGURATION_H</span></div><div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a90a58610ecd1c524583ac42d97b91875"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a90a58610ecd1c524583ac42d97b91875">Bloomberg::quantum::Configuration::getLoadBalancePollIntervalNumBackoffs</a></div><div class="ttdeci">size_t getLoadBalancePollIntervalNumBackoffs() const</div><div class="ttdoc">Get the number of backoffs used.</div></div>
<div class="ttc" id="namespaceBloomberg_html"><div class="ttname"><a href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a></div><div class="ttdef"><b>Definition:</b> quantum_buffer_impl.h:22</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_af1735770c472f6c312e161bc83646099"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#af1735770c472f6c312e161bc83646099">Bloomberg::quantum::Configuration::setNumIoThreads</a></div><div class="ttdeci">void setNumIoThreads(int num)</div><div class="ttdoc">Set the number of threads running IO tasks.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a8203c700517a9648f6adcb8b4a899cf6"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a8203c700517a9648f6adcb8b4a899cf6">Bloomberg::quantum::Configuration::getNumIoThreads</a></div><div class="ttdeci">int getNumIoThreads() const</div><div class="ttdoc">Get the number of IO threads.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a1585e468f306dec0b951bbf9f21b0315"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a1585e468f306dec0b951bbf9f21b0315">Bloomberg::quantum::Configuration::getLoadBalancePollIntervalMs</a></div><div class="ttdeci">std::chrono::milliseconds getLoadBalancePollIntervalMs() const</div><div class="ttdoc">Get load balance shared queue poll interval.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a5c7b190a980d1eddaf6e25f9b3bdb528"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a5c7b190a980d1eddaf6e25f9b3bdb528">Bloomberg::quantum::Configuration::setCoroQueueIdRangeForAny</a></div><div class="ttdeci">void setCoroQueueIdRangeForAny(const std::pair&lt; int, int &gt; &amp;coroQueueIdRangeForAny)</div><div class="ttdoc">Sets the range of coroutine queueIds covered by IQueue::QueueId::Any when using Dispatcher::post.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_af42bc6d199d504b5c48764ce70477607"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#af42bc6d199d504b5c48764ce70477607">Bloomberg::quantum::Configuration::getLoadBalanceSharedIoQueues</a></div><div class="ttdeci">bool getLoadBalanceSharedIoQueues() const</div><div class="ttdoc">Check if IO shared queues are load balanced or not.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a422373d17db88e6990ee69796b5f5cf3"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a422373d17db88e6990ee69796b5f5cf3">Bloomberg::quantum::Configuration::setNumCoroutineThreads</a></div><div class="ttdeci">void setNumCoroutineThreads(int num)</div><div class="ttdoc">Set the number of threads running coroutines.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a769faa15f9cda530a95d9bf1f93764fc"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a769faa15f9cda530a95d9bf1f93764fc">Bloomberg::quantum::Configuration::setPinCoroutineThreadsToCores</a></div><div class="ttdeci">void setPinCoroutineThreadsToCores(bool value)</div><div class="ttdoc">Indicate if coroutine threads should be pinned to a core.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a0fd72a6b2ff388efc12d4725340cfa46"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a0fd72a6b2ff388efc12d4725340cfa46">Bloomberg::quantum::Configuration::setLoadBalancePollIntervalMs</a></div><div class="ttdeci">void setLoadBalancePollIntervalMs(std::chrono::milliseconds interval)</div><div class="ttdoc">Set the interval between IO thread polls.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_ab947b023827f30b596763ada87b29834"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#ab947b023827f30b596763ada87b29834">Bloomberg::quantum::Configuration::getPinCoroutineThreadsToCores</a></div><div class="ttdeci">bool getPinCoroutineThreadsToCores() const</div><div class="ttdoc">Check to see if coroutine threads are pinned to cores or not.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_af940e54b4dd63dd40e4a34140d366b11"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#af940e54b4dd63dd40e4a34140d366b11">Bloomberg::quantum::Configuration::getJsonSchema</a></div><div class="ttdeci">static const std::string &amp; getJsonSchema()</div><div class="ttdoc">Get the JSON schema corresponding to this configuration object.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html">Bloomberg::quantum::Configuration</a></div><div class="ttdef"><b>Definition:</b> quantum_configuration.h:31</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_acc82f4296d0861c9954b0205eb62c551"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#acc82f4296d0861c9954b0205eb62c551">Bloomberg::quantum::Configuration::setLoadBalanceSharedIoQueues</a></div><div class="ttdeci">void setLoadBalanceSharedIoQueues(bool value)</div><div class="ttdoc">Load balancee the shared IO queues.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a35f313cc4027da35f757762277a456b3ac1e19c09f700938f0ff7f1fd4722a3ac"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3ac1e19c09f700938f0ff7f1fd4722a3ac">Bloomberg::quantum::Configuration::BackoffPolicy::Exponential</a></div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_ab2d38709b7471c4d31f0aeb5668b17a5"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#ab2d38709b7471c4d31f0aeb5668b17a5">Bloomberg::quantum::Configuration::setLoadBalancePollIntervalNumBackoffs</a></div><div class="ttdeci">void setLoadBalancePollIntervalNumBackoffs(size_t numBackoffs)</div><div class="ttdoc">Set the number of backoffs.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_acc089a7cf24dfc4fd54d50bfa41502ba"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#acc089a7cf24dfc4fd54d50bfa41502ba">Bloomberg::quantum::Configuration::getJsonSchemaUri</a></div><div class="ttdeci">static const std::string &amp; getJsonSchemaUri()</div><div class="ttdoc">Get the schema URI used to resolve remote JSON references '$ref'.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a0ceee1c5685d596a97cb4034a47e360c"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a0ceee1c5685d596a97cb4034a47e360c">Bloomberg::quantum::Configuration::getLoadBalancePollIntervalBackoffPolicy</a></div><div class="ttdeci">BackoffPolicy getLoadBalancePollIntervalBackoffPolicy() const</div><div class="ttdoc">Get the backoff policy in load balance mode.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a9800ff0a1eace92ec4e73bb154665263"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a9800ff0a1eace92ec4e73bb154665263">Bloomberg::quantum::Configuration::getNumCoroutineThreads</a></div><div class="ttdeci">int getNumCoroutineThreads() const</div><div class="ttdoc">Get the number of coroutine threads.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a35f313cc4027da35f757762277a456b3"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3">Bloomberg::quantum::Configuration::BackoffPolicy</a></div><div class="ttdeci">BackoffPolicy</div><div class="ttdef"><b>Definition:</b> quantum_configuration.h:34</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a35f313cc4027da35f757762277a456b3a32a843da6ea40ab3b17a3421ccdf671b"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a35f313cc4027da35f757762277a456b3a32a843da6ea40ab3b17a3421ccdf671b">Bloomberg::quantum::Configuration::BackoffPolicy::Linear</a></div><div class="ttdoc">Linear backoff.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_ac79de2f4b523de86f2625272685dbf96"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#ac79de2f4b523de86f2625272685dbf96">Bloomberg::quantum::Configuration::setLoadBalancePollIntervalBackoffPolicy</a></div><div class="ttdeci">void setLoadBalancePollIntervalBackoffPolicy(BackoffPolicy policy)</div><div class="ttdoc">Set a backoff policy for the shared queue polling interval.</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html_a0c0526228f0aa514ceeef92a3162cede"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html#a0c0526228f0aa514ceeef92a3162cede">Bloomberg::quantum::Configuration::getCoroQueueIdRangeForAny</a></div><div class="ttdeci">const std::pair&lt; int, int &gt; &amp; getCoroQueueIdRangeForAny() const</div><div class="ttdoc">Gets the range [minQueueId, maxQueueId] of coroutine queueIds covered by IQueue::QueueId::Any by the ...</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>quantum_configuration.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
